package net.jalbum.filters.arty.effects;

import java.awt.image.BufferedImage;
import java.awt.image.DataBuffer;
import java.util.Map;

/**
 *
 * @author Sarah Schölzel 
 */
public class LilyFilter extends ArtySupport {

    public LilyFilter() {
    }

    @Override
    public String getName() {
        return "Lily";
    }

    @Override
    public String getDescription() {
        return "effect like the Lofi filter in Instagram";
    }

    @Override
    public BufferedImage filter(BufferedImage bi, Map map) {
        return filter(bi);
    }

    @Override
    public BufferedImage filter(BufferedImage bi) {
        bi = super.filter(bi);

        //Brightness and Contrast
        bi = applyBrightnessAndContrast(bi, -80, 30);

        //Border
        BufferedImage dstImg = adjustBorder(bi);
        
        return dstImg;
    }
}
